package com.mugcode.hosp.config;

import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * projectName: appointment
 * <p>
 * author: Mu
 * time: 2023/5/22 8:31
 * description: 配置类
 */
@Configuration
@MapperScan("com.mugcode.hosp.mapper")
public class HospConfig {

    /**
     * 分页插件
     */

    @Bean
    public PaginationInnerInterceptor paginationInnerInterceptor(){
        return new PaginationInnerInterceptor();
    }
}
